/*
 * UI_user.c
 *
 *  Created on: 2025/8/13
 *      Author: doititit
 */
#include "UI_user.h"

void UI_Default_Page(void)
{
    DisplayEventAdd(DisplayEvent_DefaultData_Scan);
    DisplayEventOnce(DisplayEvent_DefaultBackground_Once);
}

void UI_Shao_Page(void)
{
    DisplayEventOnce(DisplayEvent_Shao_Scan);
}

void UI_Bmi_Green_Page(void)
{
    DisplayEventOnce(DisplayEvent_BMI_Green_Once);
}

void UI_Bmi_Blue_Page(void)
{
    DisplayEventOnce(DisplayEvent_BMI_Blue_Once);
}

void UI_Bmi_Orange_Page(void)
{
    DisplayEventOnce(DisplayEvent_BMI_Orange_Once);
}

void UI_Bmi_Yellow_Page(void)
{
    DisplayEventOnce(DisplayEvent_BMI_Yellow_Once);
}

Page_Typedef Default_Page = {
    .Page_Stage = PAGE_STAGE_WAITING,
    .Continue_Time = 2000,
    .Update = UI_Default_Page
};

Page_Typedef Shao_Page = {
    .Page_Stage = PAGE_STAGE_WAITING,
    .Continue_Time = 2000,
    .Update = UI_Shao_Page
};

Page_Typedef Bmi_Green_Page = {
    .Page_Stage = PAGE_STAGE_WAITING,
    .Continue_Time = 10000,
    .Update = UI_Bmi_Green_Page
};

Page_Typedef Bmi_Blue_Page = {
    .Page_Stage = PAGE_STAGE_WAITING,
    .Continue_Time = 10000,
    .Update = UI_Bmi_Blue_Page
};

Page_Typedef Bmi_Yellow_Page = {
    .Page_Stage = PAGE_STAGE_WAITING,
    .Continue_Time = 10000,
    .Update = UI_Bmi_Yellow_Page
};

Page_Typedef Bmi_Orange_Page = {
    .Page_Stage = PAGE_STAGE_WAITING,
    .Continue_Time = 10000,
    .Update = UI_Bmi_Orange_Page
};


